package com.ruoyi.business.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.business.domain.Platform;
import com.ruoyi.business.domain.Station;

import java.util.List;

/**
 * 城市及其下属车站DTO
 */
public class CityWithPlatformsDTO {
    /** 城市信息 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private String name;
    
    /** 城市下属车站列表 */
    private List<Platform> platforms;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Platform> getPlatforms() {
        return platforms;
    }

    public void setPlatforms(List<Platform> platforms) {
        this.platforms = platforms;
    }
}